PEAddParameterCurrentValue

Use PEAddParameterCurrentValue to add a value to the specified parameter field of a report. Note that these parameter field capabilities are not currently supported in Web Viewers. See Working with Parameter Values and Ranges.

C Syntax
BOOL CRPE_API PEAddParameterCurrentValue (
        short printJob,
        const char FAR *parameterFieldName,
        const char FAR *reportName,
        PEValueInfo FAR *currentValue );
Parameters

printJob

Specifies the print job to which you want to add a parameter current value.

parameterFieldName

Specifies a pointer to the string containing the parameter field name.

reportName

Specifies a pointer to the string containing the report name. See Remarks below.

currentValue

Specifies a pointer to PEValueInfo, which will contain the value to be added to the parameter field. Use PE_VI_NOVALUE to indicate no value when not NULL (for example, PEValueInfo.currentValue = PE_VI_NOVALUE).

Returns
Remarks

Regarding parameter reportName:

This call will succeed when called with a ranged parameter. It will add a range with the start and end points equal to the given value to the Current Range list (if there are multiple ranges, otherwise it will replace the current range).

VB Syntax
Declare Function PEAddParameterCurrentValue Lib "crpe32.dll" ( _
    ByVal printJob As Integer, ByVal parameterFieldName As String, _
    ByVal reportName As String, currentValue As PEValueInfo ) As Integer
Delphi Syntax
procedure PEAddParameterCurrentValue (
    printJob: smallint;
    const parameterFieldName: PChar;
    const reportName: PChar;
    var currentValue: PEValueInfo
    ): BOOL stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com